# -*-* encoding:UTF-8 -*-
# author            : mengy
# date              : 2018/12/14
# python-version    : Python 3.7.0
# description       : 

from com.python.demo.mutil_chatting_room.entities.Room import Room


class LogoutRoom(Room):
    "处理退出聊天房间的用户"

    def add(self, session):
        try:
            del self.server.users[session.name]
        except KeyError as e:
            print('退出发生异常，原因:', e)
            pass
